package net.hn.hnms.biz.steelyard.domain;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;
import java.util.Date;

/**
 * @author wangjingrui
 * @date 2022/9/1 13:09
 */
@Data
@NoArgsConstructor
@TableName("dwd_cljl_his_beltscale")
public class SteelyardHis implements Serializable {

    @ApiModelProperty(value = "主键ID")
    @TableId(type = IdType.ASSIGN_UUID)
    private Long id;

    @ApiModelProperty(value = "测点编码")
    @Length(max = 20, message = "测点编码长度不能超过20个字符")
    private String deviceCode;

    @ApiModelProperty(value = "测点名称")
    @Length(max = 20, message = "测点名称长度不能超过20个字符")
    private String deviceName;

    @ApiModelProperty(value = "数据类型, C0 上班产量,C1 本班产量,Ds 日产量,Ms 月产量,Ys 年产量,Ua 称重信号,Vv 速度,Fld 负载,Ffw 流量")
    @Length(max = 10, message = "数据类型长度不能超过100个字符")
    private String dataType;

    @ApiModelProperty(value = "数据值")
    private Double dataValue;

    @ApiModelProperty(value = "参数")
    private Integer param;

    @ApiModelProperty(value = "数据时间")
    private Date dataTime;

    @ApiModelProperty(value = "班次")
    @Length(max = 100, message = "班次长度不能超过100个字符")
    private String cla;

    @TableField(value = "mine_code", fill = FieldFill.INSERT)
    @ApiModelProperty(value = "煤矿编码",hidden=true)
    private String mineCode;

    @TableField(value = "mine_code")
    @ApiModelProperty(value = "煤矿名称")
    private String mineName;

    @ApiModelProperty(value = "创建时间",hidden=true)
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "更新时间",hidden=true)
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}
